<?php
$con = mysql_connect('127.0.0.1', 'root', '');
	if (!$con)
	{
		echo "<status>Fail</status>";
		echo "<info>DBConnection not established !</info>";
		
	}
	else
	{
		mysql_select_db("dbp2", $con);
	
	}
	
	
	$ssn_id = "testssn";
	$name = "Priya";
	$user_type = "C";
	$email = "hdsjfh";
	$address = "gsdfjhdg";
	$city = "hgddfgjld";
	$country = "dnjfh";
	$zip = "dhfsjgk";
	
	//$qry = "SELECT l_id FROM users WHERE ref_id IN (SELECT ssnid_F from creditcards WHERE cc_id =\"" . $creditcard ."\")";
	$str = "'" . $ssn_id . "','" . $name . "','" . $user_type . "','" . $email . "','" . $address . "','" . $city . "','" . $country . "','" . $zip . "'";
	
	echo $str;
	//$sql = "INSERT INTO regusers VALUES(" . $str . ")";
	
	$result = mysql_query($sql, $con);
	echo $result;
	//while($row = mysql_fetch_array($result))
	{
		//echo $row["l_id"];
	}
	//echo $customername;
	//$str = "'" . $pid . "','" . $creditcard . "','" . $customername . "','" . $username . "','". $pdate . "','" . $month . "','" . $year . "','" . $amount . "','" . $item . "'";	
	//$result = mysql_query($str, $con);
	
	
?>